function isCanvasSupported(){
	var elem = document.createElement('canvas');
	return !!(elem.getContext && elem.getContext('2d'));
}

function includeJS(jsPath){
	var script = document.createElement("script");
	script.setAttribute("type", "text/javascript");
	script.setAttribute("src", jsPath);
	document.getElementsByTagName("head")[0].appendChild(script);
};

function includeCSS(cssPath){
	var link = document.createElement("link");
	link.setAttribute("type", "text/css");
	link.setAttribute("rel", "stylesheet");
	link.setAttribute("href", cssPath);
	document.getElementsByTagName("head")[0].appendChild(link);
};

if(!isCanvasSupported()){
	includeCSS("lui/core/html/lui.css");
	includeJS("lui/core/html/lui.js");
}else{
	includeCSS("lui/core/html5/lui.css");
	includeJS("lui/core/html5/lui.js");
}
